package com.yidu.qx.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Objects;

/**
 * @program: jurisdiction
 * @description:
 * @author: 张超
 * @create: 2019-09-25 10:23
 */
@Entity
@Table(name = "qx_roles_modules", schema = "ZC", catalog = "")
public class QxRolesModulesEntity {
    private String rolId;

    @Id
    @Column(name = "rol_id")
    public String getRolId() {
        return rolId;
    }

    public void setRolId(String rolId) {
        this.rolId = rolId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QxRolesModulesEntity that = (QxRolesModulesEntity) o;
        return Objects.equals(rolId, that.rolId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(rolId);
    }
}